package com.lingxu.module.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingxu.base.common.api.vo.Result;
import com.lingxu.module.message.entity.UserMessage;

import java.util.List;

/**
 * @Title: MessageService
 * @Package: com.lingxu.module.message
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/8/28 9:28
 * @Description:
 * @Version: 1.0.0
 */
public interface MessageService extends IService<UserMessage> {

    /**
     * @Author ysj闫世杰
     * @Description 查询未读消息
     * @Date 2023/8/28 9:44
     * @Param: userId
     * @return com.lingxu.base.common.api.vo.Result
     **/
    Result findUnReadMessage(String userId);

    /**
     * @Author ysj闫世杰
     * @Description 消息已读
     * @Date 2023/8/28 14:13
     * @Param: ids
     * @return com.lingxu.base.common.api.vo.Result
     **/
    Result updateRead(List<String> ids);
}
